<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%-- <c:if test="${comment.commentNoOriginal == null }">
	<div>
</c:if>
<c:if test="${comment.commentNoOriginal != null }">
	<div style="margin-left: 10px; border-left: 1px; border-left-color: blue; border-left-style: solid;">
</c:if> --%>
	    <table width=100%>
	    	<tr>
	    		<td width="20%" class="lb_center" style="background:#FFA7A7"><%-- ${comment.member.memberName } --%></td>
				<td width="20%" class="lb_center"><%-- ${comment.updateDate } --%></td>
				<td width="20%" class="lb_center"><a href="javascript:commentReply(<%-- ${comment.commentNo } --%>)">답글</a></td>
				<td width="20%" class="lb_center"><a href="javascript:commentPreModify(<%-- ${comment.commentNo } --%>)">수정</a></td>
				<td width="20%" class="lb_center"><a href="javascript:commentRemove(<%-- ${comment.commentNo }, ${comment.boardItemsNo } --%>)">삭제</a></td>
	    	</tr>
	    	<tr>
				<td class="lb_center" colspan="5">
					<pre><%-- ${comment.commentView } --%></pre>
				</td>
			</tr>
			<tr>
				<td colspan="5">
				<div id="commentModify_<%-- ${comment.commentNo } --%>" style="margin:3px 2px 0px 10px;"></div>
				</td>
			</tr>
			<tr>
				<td colspan="5">
				<div id="commentReply_<%-- ${comment.commentNo } --%>" style="display:none; margin:3px 2px 0px 20px;">
					<form id="commentReplyForm_<%-- ${comment.commentNo } --%>">
						<input type="hidden" name="memberId" value="<%-- ${login.memberId } --%>" >
						<input type="hidden" name="boardItemsNo" value="<%-- ${boardItem.boardItemsNo} --%>" >
						<input type="hidden" name="commentNoOriginal" value="<%-- ${comment.commentNo } --%>" >
						<input type="hidden" name="commentLineNo" value="<%-- ${comment.commentLineNo } --%>" >
						<table width="100%" border="1" cellspacing="0" cellpadding="0">
						
							<tr>
					
								<td width="5%" class="lb_center" style="background:#1DDB16"><h4>답글</h4></td>
								<td width="80%" class="lb_center">
									<textarea id="itemcommentAdd" name="commentView" rows="3" style="width: 100%;"><%-- ${comment.commentView } --%></textarea></td>
								<td width="15%" class="lb_center">
								<input type="button" value="답글입력" style="height: 50px; width: 100px; font-size: 25px;" onclick="commentReplyAdd(<%-- ${comment.commentNo }, ${boardItem.boardItemsNo} --%>);"></td>
							</tr>
						</table>
	
					</form>
				</div>
				</td>
			</tr>
	    </table>
<!-- 	</div> -->
	
